<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>AngularJs的双向数据绑定</title>
    <script src="../js/angular.min.js" type="text/javascript"></script>
</head>
<!--ng-app是angularJs的入口,是模块的作用域-->
<body ng-app>
    <div>

        数量:<input type="text" name="count" ng-model="count"/><br/>
        价格<input type="text" namr="price" ng-model="price"/>
    </div>
    <div>
        总价: {{count*price}}
    </div>
</body>
</html>